<?php
/*
 * @Author: Zhang Yingying
 * @Date: 2020-09-28 17:08:46
 * @LastEditors: Zhang Yingying
 * @LastEditTime: 2020-12-09 22:17:27
 */
// 中间件配置
return [
    // 别名或分组
    'alias' => [
      'after' => app\middleware\After::class,
      'before' => app\middleware\Before::class,
      'auth'  => app\middleware\Auth::class,
      'session' => \think\middleware\SessionInit::class,
    ],
    // 优先级设置，此数组中的中间件会按照数组中的顺序优先执行
    'priority' => [
      \think\middleware\SessionInit::class,
      app\middleware\Before::class,
      app\middleware\Auth::class,
      app\middleware\After::class,
    ],
];
